package com.qg.rta.support.lifecycle;
/**
 * 
 * @since 2021/12/11 0:32
 */


import com.qg.rta.modules.service.RtaConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class AgencyFactoryLifeCycle implements SmartLifecycle {

    @Autowired
    private RtaConfigService rtaConfigService;



    @Override
    public void start() {
        rtaConfigService.sysnCacheToDb();

    }

    @Override
    public void stop() {

    }

    @Override
    public boolean isRunning() {
        return false;
    }
}
